import request from "@/utils/request";

// 全部司机列表
export function getDriverList(params) {
  return request({
    url: "/manager/truck/page",
    method: "get",
    params,
  });
}
// 车辆类型
export const getTypeList = () => {
  return request.get("/manager/truckType/simple");
};

// 新增
export const addCarOne = (data) => {
  return request.post("/manager/truck", data);
};

// 回显
export const EchoCar = (id) => {
  return request(`/manager/truck/${id}`);
};

// 行驶证
export const getDriving = (id) => {
  return request(`/manager/truck/${id}/license`);
};

// 查找
// export const getCarInfo = (params) => {
//   return request(`/manager/truck/page`, params);
// };
